#ifndef _THREAD_LOCK_H_
#define _THREAD_LOCK_H_

#ifdef WIN32
#include <windows.h>
#else
#include <pthread.h>
#endif

//#include "LibUtility.h"
//class LIB_UTILITY_DLLAPI CThreadLock
class CThreadLock
{
private:
#ifdef WIN32
	CRITICAL_SECTION m_Lock;
#else
	pthread_mutex_t m_Lock;
#endif

public:
	void UnLock();
	void Lock();
	CThreadLock();
	virtual ~CThreadLock();

};

#endif // #ifndef _THREAD_LOCK_H_
